package com.xiaolin.designmode.mediator;

/**
 * @ClassName ConcreteColleague2
 * @Description 具体同事类
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/7
 * @Version 1.0
 */
public class ConcreteColleague2 extends Colleague {
    @Override
    public void send() {
        System.out.println("同事2状态改变了");
        mediator.relay(this);  //请求中介者转发
    }

    @Override
    public void receive() {
        System.out.println("我是2，接收到其他同事状态改变了");
    }
}
